*********************************************
*	Author: Rithika Kumar	                *
*   GOAL: Sub-Dimensions of indices         *
*   Table A9 (Appendix D)                   * 
*********************************************

* Set working directory to "JOP Replication files" folder on your computer 

** Import the main EW did dataset 
use "DATA FILES TO SHARE/main_ew_hh_df.dta", clear


gen did = 0 
replace did = 1 if mig_husb == 1 & year == 1

est clear

foreach i in GRlux_A  GRcook_A GRchild_A GRmarr_A GR_hh_ac GR_hh_prop { 

quietly reghdfe `i' i.w2_abshusband_dummy i.year did   dil_dummy EW_health EW_Age ASSETS5 FM1 if did_sample == 1 , vce(cluster vill_id_num) absorb(hhuid)
 eststo `i'
}

   
   foreach i in  pol_immu_dummy  pol_disc_yes { 

quietly reghdfe `i' i.w2_abshusband_dummy i.year did   dil_dummy EW_health EW_Age ASSETS5 FM1 if did_sample == 1 , vce(cluster vill_id_num) absorb(hhuid)
 eststo `i'
}

   foreach i in  mob_rel mob_hc mob_shop mob_mandi  { 

quietly reghdfe `i' i.w2_abshusband_dummy i.year did   dil_dummy EW_health EW_Age ASSETS5 FM1 if did_sample == 1 , vce(cluster vill_id_num) absorb(hhuid)
 eststo `i'
}

*** Export regressions
   
   estout GR*  pol* mob* ///
  using "OUTPUT/TABLES/Table_A9.tex", replace ///
    prehead("\begin{table}[H]" "\small" "\centering"  ///
            "\begin{tabular}{lcccccccccccc}" "\toprule" ///
            "& \multicolumn{4}{c}{\textit{Bargaining Power Over}} & \multicolumn{2}{c}{\textit{Financial Autonomy}}&\multicolumn{2}{c}{\textit{Political Engagement}}&\multicolumn{4}{c}{\textit{Mobility}}\\" ///
            "&(1)&(2) & (3) & (4) &(5)&(6)& (7) &(8)&(9)\\" "\hline" "\hline") ///
    posthead("") keep(1.year did) varlabels(  1.year "Wave 2" did  "Migrant Husband  $\times$ Wave 2") ///
	stats(r2_a N, fmt(%9.4f %9.0f) labels("Adj.R2" "Observations")) cells(b(fmt(a2) star) se(par fmt(a2))) starlevels(* 0.10 ** 0.05 *** 0.01) style(tex) collabels(, none) mlabels(, none) ///
     nonumber ///
     postfoot( "\bottomrule" "\end{tabular}" "\label{tab:other_FE_tab4}" "\begin{tablenotes}" "\noindent Notes: Effects of migration on sub-dimensions of indices included in Table 3 and 4. Each column corresponds to one sub-index under. Col 1-4 represent bargaining power sub-indices: Say over Luxury items, daily cooking, fertility and child's marriage. Column 7-8: Political engagement in terms of political knowledge and political discussion. 5-6: Financial autonomy over household bank account and property owenrship. Column 9-12: Autonomy over mobility to visit relatives, health casre center, local store and market. See Appendix B for definition and construction of indices. Individual fixed effects are included in all specification.  Women with migrant husbands observe an increase in their ability to partake in household decisions related to financial spending. They also exhibit more autonomy over their own bodies as they partake equally in fertility decisions. Women in migrant households have access to cash and personal bank accounts (see Table 4) but their access to tangible assets like personal property does not increase. These results imply that women get temporary access to cash, likely through remittances, in their bank accounts but are not financially independent from the household. Source: IHDS I and II" "\end{tablenotes}" "\end{table}")

  
   
